<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/adminstyle.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="css/common.css" type="text/css" />
<link href="css/ui-lightness/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" type="text/css">
<script  language="javascript" type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script   language="javascript" type="text/javascript"src="js/jquery-ui-1.10.3.custom.js"></script>
<title>管理区域</title>
</head>
<script>
$(function() {		
	$( "#tabs" ).tabs();
});
</script>
<body>
<div id="tabs">
	<ul>
		<li><a href="#tabs-3">操作日志</a></li>
		<li><a href="#tabs-1">课堂信息</a></li>
		<li><a href="#tabs-2">支付信息</a></li>
</ul>
<div style="background-color:#FFFFFF ">
<div id="tabs-2">
  <table width="100%" border="0" align="center"  cellpadding="3" cellspacing="1" class="tableborder">
        <tr  class="header">
          <td colspan="8" >支付信息</td>
        </tr>
        <tr  bgcolor="#FFFFFF">
          <td  style="font-weight:bold;width:10%" >订单号</td>
          <td  style="width:20%"><?=$book['book_no']?></td>
          <td  style="font-weight:bold;width:15%" >支付状态</td>
          <td  style="width:15%"><?=$book['pay_status']?></td>
          <td  style="font-weight:bold;width:10%" >支付课时</td>
          <td style="width:10%"><?=$book['pay_userclass']?></td>
          <td  style="font-weight:bold;width:10%;" >需要课时</td>
          <td  style="width:1o%"><?=$book['course_needclass']?></td>
      </tr>
 </table>  
</div>
<div  id="tabs-1">  
    <table width="99%" border="0" align="center"  cellpadding="3" cellspacing="1" class="tableborder">   
        <tr class="header">
          <td colspan="8">课堂信息</td>
        </tr>
        <tr  bgcolor="#FFFFFF">
          <td style="font-weight:bold;width:10%;" align="center">课堂主题</td>
          <td style="width:20%;">
          	<span class="span_detail">类型：<?=$book['book_type']?>&nbsp;</span><br>
          	<br>
          	<span class="span_detail">时间：<?=$book['book_time']?></span><br>
          	<br>
          	<span >工具：<?=$book['communication_tools_name']?></span></td>
          <td style="font-weight:bold;" align="center">预约单状态</td>
		  <td><?=$book['class_status_name']?></td>
          <td style="font-weight:bold;" align="center">教师状态</td>
          <td><?=$book['teacher_status']?></td>          
          <td style="font-weight:bold;" align="center">学生状态</td>
          <td><?=$book['user_status']?></td>
      </tr>
      <tr  bgcolor="#FFFFFF">
      <td colspan="8">
      &nbsp;
      </td>
      </tr>      
        <tr  bgcolor="#FFFFFF">
          <td style="font-weight:bold;width:10%;" align="center">教材主题</td>
          <td ><?=$course['theme']?></td>
          <td style="font-weight:bold;" align="center">类别</td>
          <td><?=$course['type']?></td>
          <td style="font-weight:bold;" align="center">编号</td>
          <td><?=$course['serial_number']?></td>
          <td style="font-weight:bold;" align="center">下载</td>
		  <td><a href="Course_download.html?id=<?=$course['id']?>" target="_blank"><font color="blue">下载</font></a></td>
      </tr>
      <tr  bgcolor="#FFFFFF">
      <td colspan="8">
      &nbsp;
      </td>
      </tr>
       <tr bgcolor="#FFFFFF">
          <td style="font-weight:bold;" align="center">学员信息</td>
          <td><span  class="span_detail">名称：<?=$user['english_name']?>
          </span>
          <br>
          <br>
          <span  class="span_detail">电话：<?=$user['phone']?></span>
          <br>
          <br>
          <?if($book['communication_tools']==QQ){?>
          <span class="span_detail">QQ：<?=$user['qq']?></span>
          <?}?>
          <?if($book['communication_tools']==SKYPE){?>
          <span class="span_detail">SKYPE：<?=$user['skype']?></span>
          <?}?>
          <br>
          <br>
          <span class="span_detail">职业：<?=getStr($user['user_job_pair'],$user['job'])?></span>
          <br>
          <br>
          <span>等级：<?=getStr($user['level_pair'],$user['level'])?></span>
          </td>
          <td style="font-weight:bold;" align="center">负责人</td>
          <td ><?=$user['employee_name']?></td>                    
          <td style="font-weight:bold;" align="center">留言</td>
          <td colspan="5"><?=$book['message']?></td>                    
        </tr>
      <tr  bgcolor="#FFFFFF">
      <td colspan="8">
      &nbsp;
      </td>
      </tr>        
        <tr bgcolor="#FFFFFF">
          <td style="font-weight:bold;" align="center">教师信息</td>
          <td ><br><span  class="span_detail">名称：<?=$teacher['name']?></span><br><br>
          <?if($book['communication_tools']==QQ){?>
          <span >QQ：<?=$teacher['qq']?></span>
          <?}?>
          <?if($book['communication_tools']==SKYPE){?>
          <span >SKYPE：<?=$teacher['skype']?></span>
          <?}?>
          <br>
          <br>
          </td>
          <td style="font-weight:bold;" align="center">负责人</td>
          <td ><?=$teacher['employee_name']?></td>
          <td style="font-weight:bold;" align="center">口碑</td>
          <td><?=$teacher['email']?></td>
          <td style="font-weight:bold;" align="center">授课等级</td>
          <td><?=getStr($user['level_pair'],$teacher['teach_level'])?></td>          
        </tr>
      <tr  bgcolor="#FFFFFF">
      <td colspan="8">
      &nbsp;
      </td>
      </tr>        
</table>
          </td>
        </tr>
     
  </table>
</div>
<div id="tabs-3">
  <form method="post" id="form" action="" >
 <table width="96%" border="0" cellpadding="3" cellspacing="1" class="tableborder" align="center">
          <tr  class="header">
          <td colspan="8" >操作</td>
        </tr>      
	<tr bgcolor="#FFFFFF">
          <td colspan="1" >备注</td>
          <td colspan="7" ><textarea name="remark" id="textfield" cols="100" rows="5"></textarea></td>		
		</tr>	
		<tr>
		<td colspan="8" bgcolor="#FFFFFF">&nbsp;</td>
		</tr>
		<tr bgcolor="#FFFFFF">
          <td style="font-weight:bold;width:15%;" align="center">预约单状态</td>
		  <td style="width:10%;"><?=$book['class_status_name']?></td>
          <td style="font-weight:bold;" align="center"  style="width:15%;">教师状态</td>
          <td style="width:10%;"><?=$book['teacher_status']?></td>          
          <td style="font-weight:bold;" align="center">学生状态</td>
          <td style="width:15%;" align="center"><?=$book['user_status']?></td>
		  <td style="font-weight:bold;" align="center">操作信息</td>
		  <td style="width:15%;">
		  <?if ($book['class_status']==CLASS_STATUS_0){?>
		  <?=$book['add_user']?>&nbsp;&nbsp;创建于
		  <?=date('Y-m-d H:i:s',$book['add_time'])?>
		  <?}?>
		  <?if ($book['class_status']==CLASS_STATUS_1){?>
		  <?=$book['confirm_admin']?>&nbsp;&nbsp;确认于
		  <?=date('Y-m-d H:i:s',$book['confirm_time'])?>
		  <?}?>
		  <?if ($book['class_status']==CLASS_STATUS_2){?>
		  <?=$book['complete_admin']?>&nbsp;&nbsp;完成于
		  <?=date('Y-m-d H:i:s',$book['complete_time'])?>
		  <?}?>
		  <?if ($book['class_status']==CLASS_STATUS_3){?>
		  <?=$book['cancel_admin']?>&nbsp;&nbsp;取消于
		  <?=date('Y-m-d H:i:s',$book['cancel_time'])?>
		  <?}?>
		  </td>
		</tr>
		<tr>
		<td colspan="8" bgcolor="#FFFFFF">&nbsp;</td>
		</tr>
		<tr   bgcolor="#FFFFFF">
          <td colspan="8" >
	       <input name="id" type="hidden" value="<?=$book['id']?>" />
       	    <input name="" type="button" value="返回" class="PublicBot" onclick="location.href='BookCourse_lists.html'" />
	       <?if ($book['class_status']==CLASS_STATUS_0){?>
	       <input name="" type="button" value="保存" class="PublicBot" onclick="subs('BookCourse_saveRemark.html')" />
          	<input name="" type="button" value="确认" class="PublicBot" onclick="subs('BookCourse_confirm.html')" />
          	 <input name="" type="button" class="PublicBot" value="取消"  onclick="subs('BookCourse_cancellation.html')" />
           <?}?>
           
           <?if ($book['class_status']==CLASS_STATUS_1){?>
	        <input name="" type="button" value="保存" class="PublicBot" onclick="subs('BookCourse_saveRemark.html')" />
           	<input name="" type="button" class="PublicBot" value="完成"  onclick="subs('BookCourse_complete.html')" />
            <input name="" type="button" class="PublicBot" value="取消"  onclick="subs('BookCourse_cancellation.html')" />
           <?}?>
          </td>
        </tr>
         <tr >
          <td colspan="8"   >
          <table width="100%" border="0" cellpadding="3" cellspacing="1" class="tableborder">
 		 	<tr  bgcolor="#FFFFFF">
   			 <td style="width:15%">操作类型</td>
   			 <td style="width:15%">操作用户</td>
   			 <td style="width:15%">操作时间</td>
   		 	<td style="width:55%">备注</td>
  			</tr>
		  <?
		  foreach($log as $v){
		  ?>
		    <tr  bgcolor="#FFFFFF">
		    <td ><?=$v['type']?></td>
		    <td><?=$v['add_admin']?></td>
		    <td><?=date('Y-m-d H:i:s',$v['add_time'])?></td>
		    <td><?=$v['remark']?></td>
		  </tr>
		  <?
		  }
		  ?>        
 </table>
</form> 
</div>  
</div>
</div>
<script>
function subs(value){
	document.getElementById('form').action=value;
	document.getElementById('form').submit();
}
</script>
</body>
</html>
